<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
$fp = @file($strTemplatePath."Director_Search.html");
$fp = implode("", $fp);
$fp = setHTMLCharset($fp);
$fp = str_replace("{SearchData1}", getPayupDateOfAccountSearchLimit("2000-01-01"), $fp);
$fp = str_replace("{SearchData2}", date("Y-m-d"), $fp);

while(list($k, $v) = each($_strAccount_Director)){
	$fp = str_replace("{".$k."}", $v, $fp);
}

$intLottoID = (int)$_data["LottoID"];

$tmp = MakeLottoSelect($_arrLotto, $intLottoID, "LottoID", "SelfSubmit()", $_intLang);
$fp = str_replace("{SelectLotto}", $tmp, $fp);
$tmp = SelectReportType(0, "ReportType", "");
$fp = str_replace("{SelectReportType}", $tmp, $fp);
$tmp = SelectBetType(0, "Bet_Type", "");
$fp = str_replace("{SelectBetType}", $tmp, $fp);
$tmp = "";//MakeGambleNoSelect($intLottoID, 0, "GambleID", "", 5, $_arrLotto);
$fp = str_replace("{SelectGamebleNo}", $tmp, $fp);

$a = getdate();
$b = date("Y-m-d",mktime(0,0,0,$a["mon"],$a["mday"],$a["year"]));
$fp = str_replace("{LastDay}", $b, $fp);
//輸出
WebOutputHTML($fp, 1);
?>